package com.explorati.design_pattern.hybrid.observermediator;

//乞丐
public class Beggar extends EventCustomer {

	public Beggar() {
		super(ProductEventType.DEL_PRODUCT);
	}

	public void exex(ProductEvent event) {
		Product p = event.getSource();
		// 事件类型
		ProductEventType type = event.getType();
		System.out.println("乞丐处理事件：" + p.getName() + "销毁，事件类型=" + type);
	}

}
